#@layout()

#define script()
<script src="#(CPATH)/static/components/sortable/Sortable.min.js"></script>

<script>

  $(".submitBtn").on("click", function () {
    doSubmit();
  });

  window.doSubmit = function () {
    ajaxSubmit("#form1", function (data) {
      toastr.success('处理成功。');
    });
  };


</script>
#end

#define content()
<section class="content-header">
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-12">

        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>
              简历处理
              <small data-toggle="tooltip" title="" data-placement="right"
                     data-trigger="hover"><i
                      class="nav-icon far fa-question-circle"></i></small>
              <small> 首页 / 招聘 / 简历管理 / 简历处理</small>
            </h1>
          </div>
          <div class="col-sm-6 ">
            <div class="float-sm-right admin-actions">
              <a href="#(CPATH)/admin/job/JobApply">
                <button type="button" class="btn btn-outline-secondary back">
                  <i class="fa fa-fw fa-arrow-left"></i> 返回
                </button>
              </a>

            </div>
          </div>

        </div>
      </div>


    </div>
  </div><!-- /.container-fluid -->
</section>

<section class="content">
  <div class="container-fluid">
  </div>
  <div class="card card-primary card-outline">

    <!-- /.card-body -->
    <div class="card-body">
      <div class="row invoice-info">
        <div class="col-sm-3 invoice-col">
          <p>用户名称：#(jobApply.user_name ??)</p>
          <p>申请职位：#(job.title ??)</p>
          <p>手机号码：#(jobApply.mobile_area ??) #(jobApply.mobile ??)</p>
          <p>出生日期：#date(jobApply.birthday ??,"yyyy-MM-dd")</p>
        </div>
        <!-- /.col -->


        <div class="col-sm-3 invoice-col">
          <p>邮箱：#(jobApply.email ??)</p>
          <p>性别：#if(jobApply.gender ?? == 0) 男 #else if(jobApply.gender ?? == 1) 女 #end</p>
          <p>经验：#(jobApply.work_years ??)年</p>

          <p>学历：#if(jobApply.education ?? == 0)其它
            #else if(jobApply.education ?? == 1)初中及以下
            #else if(jobApply.education ?? == 2)中专/中技
            #else if(jobApply.education ?? == 3)高中
            #else if(jobApply.education ?? == 4)大专
            #else if(jobApply.education ?? == 5)本科
            #else if(jobApply.education ?? == 6)硕士
            #else if(jobApply.education ?? == 7)博士
            #end
          </p>

        </div>
        <!-- /.col -->
        <div class="col-sm-3 invoice-col">
          <p>推荐码：#(jobApply.referral_code ??)</p>
          <p>最近工作公司：#(jobApply.last_company ??)</p>
          <p>是否已经处理：#if(jobApply.with_disposed ??) 是 #else 否 #end</p>
        </div>
        <!-- /.col -->
        <!-- /.col -->
        <div class="col-sm-3 invoice-col">

        </div>
        <div class="col-sm-3 invoice-col">

        </div>
        <!-- /.col -->
      </div>

    </div><!-- /.card-body -->


    <div class="card card-outline">


      <h4 class="form-table-header">
        简历处理
      </h4>

      <!-- /.card-body -->
      <div class="card-body p-0">
        <form action="#(CPATH)/admin/job/applyResult/#(jobApply.id ??)" method="post" class="ajaxSubmit" id="form1">

          <div class="form-group" style="width: 40%;margin-left: 20px">
            <textarea rows="3" name="disposedContent" class="form-control" placeholder="给出该建立的处理意见...">#(jobApply.disposed_content ??)</textarea>
          </div>

          <div class="card-footer row">
            <div class="col-sm-6 ">
              <div class="btn-group">

                <a  target="_blank" href="#(jobApply.cv_path ??)"
                   class="btn btn-outline-primary btn-sm">
                  <i class="fa fa-fw fa-plus"></i>查看简历
                </a>


                <a target="_blank" href="#(jobApply.attachment ??)"
                   class="btn btn-outline-primary btn-sm" style="margin-left: 10px">
                  <i class="fa fa-fw fa-plus"></i>查看附件
                </a>
                <input type="button"  value="提交处理意见" style="margin-left: 10px" class="btn btn-primary btn-sm submitBtn">
              </div>

            </div>
          </div>

        </form>

      </div>

    </div>
  </div>
</section>
#end

